package com.ttg.web.dao.Impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ttg.model.mapper.AdminAuthLangMapper;
import com.ttg.model.pojo.AdminAuthLang;
import com.ttg.web.dao.AdminAuthLangDao;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ZQ
 * @version 1.0
 * @Description
 * @date 2021/3/10 9:24
 */
@Service
public class AdminAuthLangDaoImpl extends ServiceImpl<AdminAuthLangMapper, AdminAuthLang> implements AdminAuthLangDao {
    @Override
    public List<AdminAuthLang> selectList(List<Long> aalAuthIds, String lang) {
        LambdaQueryWrapper<AdminAuthLang> wrapper = Wrappers.lambdaQuery();
        wrapper.eq(AdminAuthLang::getAalLang, lang)
                .in(AdminAuthLang::getAalAuthId, aalAuthIds);
        return list(wrapper);
    }


}
